package com.wang.example.consumer;

import com.wang.example.common.model.User;
import com.wang.example.common.service.UserService;
import com.wang.wangrpc.proxy.ServiceProxyFactory;

/**
 * @Author 王子旭
 * @Date 2025/04/02 23:24
 * @Version 1.0
 */
public class EasyConsumerExample {
    public static void main(String[] args) {
//        UserService userService = new UserServiceProxy();
        UserService userService = ServiceProxyFactory.getProxy(UserService.class);
        User user = userService.getUser(new User("hello"));
        System.out.println(user);
    }
}
